class UsersController < ApplicationController

  def authentication_token
    token = {Rack::Utils.escape_html(request_forgery_protection_token) => form_authenticity_token}
    logger.info(token.as_json)

    respond_to do |format|
      format.html { render :text => token }
      format.xml { render :xml => token}
      format.json { render :json => token.as_json }
    end

  end

end